import RouterView from "~/components/RouterView";

const Leave_Home = () => import("~/view/Leave/Home").then(m => m.default || m)
const Leave_LeaveRules = () => import("~/view/Leave/LeaveRules/LeaveRulesList").then(m => m.default || m)
const Leave_Myleave = () => import("~/view/Leave/MyLeave/MyLeave").then(m => m.default || m)
const Leav_Pending = () => import("~/view/Leave/LeavePending/Index").then(m => m.default || m)
const Leave_MyDepartmentAsk = () => import("~/view/Leave/MyDepartment/MyDepartment").then(m => m.default || m)
const Leave_Teacher = () => import("~/view/Leave/TeacherLeave/TeacherLeave").then(m => m.default || m)
const Leave_Collective = () => import("~/view/Leave/OrganizationLeave/OrganizationLeaveList").then(m => m.default || m)
const Leave_AllStudent = () => import("~/view/Leave/AllStudentLeave/index").then(m => m.default || m)
const Leave_MyDepartmentStatistical = () => import("~/view/Leave/AllLeaveStatistics/TeacherLeaveDepartStatistics").then(m => m.default || m)
const Leave_TeacherAskStatistical = () => import("~/view/Leave/AllLeaveStatistics/TeacherLeaveStatistics").then(m => m.default || m)
const Leave_Position = () => import("~/view/Leave/AllLeaveStatistics/JobStatistics").then(m => m.default || m)
const Leave_Classification = () => import("~/view/Leave/AllLeaveStatistics/LeaveClassifiedStatistics").then(m => m.default || m)
const Leavel_MyDepartment = () => import("~/view/Leave/AllLeaveStatistics/MyDepartStatistics").then(m => m.default || m)
const Leavel_GiveInformation = () => import("~/view/Leave/ClassInformation/index").then(m => m.default || m)
const Leavel_MyChild = () => import("~/view/Leave/MyChildLeave/MyChildLeave").then(m => m.default || m)
/**
 *请假管理 前缀- Leave
 */
export default [
    //首页
    {
        path: "/LeaveHome",
        name: "LeaveHome",
        authentication: "LeaveHome",
        component: Leave_Home,
    },
    //请假系统设置
    {
        path: "/LeaveSystemSetting",
        name: "LeaveSystemSetting",
        authentication: "LeaveSystemSetting",
        component: RouterView,
        children: [
            //请假细则设置
            {
                path: "LeaveLeaveRules",
                authentication: "LeaveLeaveRules",
                name: "LeaveLeaveRules",
                component: Leave_LeaveRules,
            }
        ]
    },
    //教师请假
    {
        path: "/LeaveTeachersAsk",
        name: "LeaveTeachersAsk",
        authentication: "LeaveTeachersAsk",
        component: RouterView,
        children: [
            //我的请假
            {
                path: "LeaveMyleave",
                name: "LeaveMyleave",
                authentication: "LeaveMyleave",
                component: Leave_Myleave,
            },
            //我的待审批请假
            {
                path: "Leavepending",
                name: "Leavepending",
                authentication: "Leavepending",
                component: Leav_Pending,
            },
            //教师请假
            {
                path: "LeaveTeacher",
                name: "LeaveTeacher",
                authentication: "LeaveTeacher",
                component: Leave_Teacher,
            },
            // 全部教师请假统计
            {
                path: "LeaveTeacherAllStatistical",
                name: "LeaveTeacherAskStatistical",
                authentication: "LeaveTeacherAskStatistical",
                component: Leave_TeacherAskStatistical,
            }
        ]
    },
    //学生请假
    {
        path: "LeaveStudent",
        name: "LeaveStudent",
        authentication: "LeaveStudent",
        component: RouterView,
        children: [
            //班级集体请假
            {
                path: "LeaveCollective",
                name: "LeaveCollective",
                authentication: "LeaveCollective",
                component: Leave_Collective,
            },
            //所有学生请假
            {
                path: "LeaveAllStudent",
                name: "LeaveAllStudent",
                authentication: "LeaveAllStudent",
                component: Leave_AllStudent,
            }
        ]
    },
    //我的部门
    {
        path: "/LeaveMyDepartment",
        name: "LeaveMyDepartment",
        authentication: "LeaveMyDepartment",
        component: RouterView,
        children: [
            //请假
            {
                path: "LeaveMyDepartmentAsk",
                name: "LeaveMyDepartmentAsk",
                authentication: "LeaveMyDepartmentAsk",
                component: Leave_MyDepartmentAsk,
            },
            //我的部门请假统计
            {
                path: "LeavelMyDepartment",
                name: "LeavelMyDepartment",
                authentication: "LeavelMyDepartment",
                component: Leavel_MyDepartment,
            }
        ]
    },
    //职务统计
    {
        path: "/LeavePosition",
        name: "LeavePosition",
        authentication: "LeavePosition",
        component: Leave_Position,
    },
    //请假分类统计
    {
        path: "/LeaveClassification",
        name: "LeaveClassification",
        authentication: "LeaveClassification",
        component: Leave_Classification,
    },
    //部门请假统计
    {
        path: "/LeaveMyDepartmentStatistical",
        name: "LeaveMyDepartmentStatistical",
        authentication: "LeaveMyDepartmentStatistical",
        component: Leave_MyDepartmentStatistical,
    },
    //查看给我的调课信息
    {
        path: "/LeavelGiveInformation",
        name: "LeavelGiveInformation",
        authentication: "LeavelGiveInformation",
        component: Leavel_GiveInformation,
    },
    //我的孩子请假
    {
        path: "/LeavelMyChild",
        name: "LeavelMyChild",
        authentication: "LeavelMyChild",
        component: Leavel_MyChild,
    }
]
